package cn.example.demo.common.secure.exception;

/**
 * 登录异常信息类
 *
 * @author Lizuxian
 * @create 2022/4/17 15:51
 */
public class LoginException extends RuntimeException {

    LoginException() {
        super();
    }

    LoginException(String msg) {
        super(msg);
    }

    /**
     * 用户名或密码不正确
     *
     * @return
     */
    public static LoginException usernameOrPasswordNotCorrect() {
        return new LoginException("用户名或密码不正确！");
    }
}
